<div class="row">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <div class="widget-head am-cf">
                <div class="widget-title am-cf">申请列表</div>
                <!-- 工具栏 -->
                <div class="page_toolbar am-margin-bottom-xs am-cf">
                     <div class="am-form-group">
                        <div class="am-btn-group am-btn-group-xs">
                            <a class="am-btn am-btn-default am-btn-success"
                               href="<?= url('cash.cash/add') ?>">
                                <span class="am-icon-plus"></span> 申请提现
                            </a>
                        </div>
                    </div>
                </div>
                <div class="am-scrollable-horizontal am-u-sm-12">
                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                        <thead>
                        <tr>
                            <th>订单id</th>
                            <th>品牌商审核状态</th>
                            <th>总后台审核状态</th>
                            <th>品牌商审核时间</th>
                            <th>总后台审核时间</th>
                            <th>提现申请时间</th>
                            <th>提现金额</th>
                            <th>开票状态</th>
                            <th>代理名称</th>
                            <th>总后台拒绝原因</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if(!$list->isEmpty()):foreach($list as $item):?>
                            <tr>
                                <td class="am-text-middle">
                                    <p class="item-title"><?= $item['id'] ?></p>
                                </td>
                                <td class="am-text-middle">
                                    <p class="item-title"><?php if($item['pps_status']==0){ echo '待审核';}elseif($item['pps_status']==1){ echo '已通过';}
                                        elseif($item['pps_status']==2){ echo '拒绝';}else{ echo '待解冻';}?></p>
                                </td>
                                <td class="am-text-middle">
                                    <p class="item-title"><?php if($item['sh_status']==0){ echo '待审核';}elseif($item['sh_status']==1){ echo '已通过';}
                                        else{ echo '已拒绝';}?></p>
                                </td>

                                <td class="am-text-middle"><?php if($item['pps_update_time']==0){ echo '待审核';}else{  echo format_time($item['pps_update_time']);}?></td>
                                <td class="am-text-middle"><?php if($item['sh_update_time']==0){ echo '待审核';}else{ echo format_time($item['sh_update_time']);}?></td>
                                <td class="am-text-middle"><?= format_time((int)$item['create_time']) ?></td>
                                <td class="am-text-middle">
                                    <p class="item-title"><?= $item['money'] ?></p>
                                </td>
                                <td class="am-text-middle">
                                    <p class="item-title"><?php if($item['isKaipiao']==0){ echo '不开票';}else{ echo '开票';}?></p>
                                </td>
                                <td class="am-text-middle">
                                    <p class="item-title"><?= $item['real_name'] ?></p>
                                </td>
                                <td class="am-text-middle">
                                    <p class="item-title"><?php if($item['remark']){ echo $item['remark'];}else{ echo '---';}?></td>
                            </tr>
                        <?php endforeach; else: ?>
                            <tr>
                                <td colspan="4" class="am-text-center">暂无记录</td>
                            </tr>
                        <?php endif; ?>
                        </tbody>
                    </table>
                </div>
                <div class="am-u-lg-12 am-cf">
                    <div class="am-fr"><?= $list->render() ?> </div>
                    <div class="am-fr pagination-total am-margin-right">
                        <div class="am-vertical-align-middle">总记录：<?= $list->total() ?></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    function getInformation(title,url){
        console.log(url)
        $('.j-delete').getinfo(title+"详情",url);
    }
</script>
